<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE >
<html>
<head>

<base href="<%=basePath%>">
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />

<link href="systemStyle/H-ui.css" rel="stylesheet" type="text/css" />
<link href="systemStyle/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="plugin/font/font-awesome.min.css"  rel="stylesheet" type="text/css"	 />


<script type="text/javascript" src="http://libs.useso.com/js/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="systemJs/H-ui.js"></script>

<script type="text/javascript" src="systemJs/H-ui.admin.js"></script>
<script type="text/javascript" src="systemJs/aex_admin.js"></script>
<script type="text/javascript" src="plugin/layer/layer.min.js"></script>
<script type="text/javascript" src="plugin/layer/extend/layer.ext.js"></script>
	



</head>

<body>
	<nav class="Hui-breadcrumb"> <i class="icon-home"></i> 首页 <span
		class="c-gray en">&gt;</span> 用户中心 <span class="c-gray en">&gt;</span>
	<a href="manage/admin_goAdminListUI.do">管理员列表 </a><a class="btn btn-success radius r mr-20"
		style="line-height:1.6em;margin-top:3px"
		href="javascript:location.replace(location.href);" title="刷新"><i
		class="icon-refresh"></i></a> </nav>
	<div class="pd-20">
	<%--只有高级管理员才能对管理员进行添加 --%>
		<c:if test="${admin.saIsRoot <2 }">
			<div class="text-c">
				<form class="Huiform" method="post"
					action="manage/admin_addNewAdmin.do" target="_self">
					<input type="text" name="saAccount" placeholder="帐号"
						datatype="*1-18" value="" class="input-text" nullmsg="请输入帐号！">
					<input type="password" placeholder="密码" value="" name="saPassword"
						datatype="*4-18" class="input-text" nullmsg="请输入密码 ！"> <input
						type="password" placeholder="确认密码" value="" name="adPassword2"
						datatype="*" recheck="saPassword" class="input-text"> <select
						class="select" name="saIsRoot" size="1">
						<option value="1">高级管理员</option>
						<option value="2">普通管理员</option>
					</select>
					<button type="submit" class="btn btn-success" id="" name=""
						onClick="admin_add(this);">
						<i class="icon-plus"></i> 添加
					</button>
				</form>
			</div>
		</c:if>
	<script type="text/javascript" src="systemJs/Validform_v5.3.2_min.js"></script>
		
		<div class="cl pd-5 bg-1 bk-gray mt-20">
			<span class="l"><a href="javascript:;"
				onclick="handleItems('manage/admin_delAdmins.do?JYY=1')"
				class="btn btn-danger radius"><i class="icon-trash"></i> 批量删除</a></span> <span
				class="r">共有数据：<strong>${pageBean.itemCount }</strong> 条
			</span>
		</div>
		<table class="table table-border table-bordered table-bg">
			<thead>
				<tr>
					<th scope="col" colspan="7">员工列表</th>
				</tr>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name=""
						value="${admin.saId }"></th>
					<th width="40">ID</th>
					<th width="150">登录名</th>
					<th>角色</th>
					<th width="130">加入时间</th>
					<th width="70">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="admin" items="${pageBean.objList }">
					<tr class="text-c">
						<td><input type="checkbox" value="${admin.saId}" name=""></td>
						<td>${admin.saId}</td>
						<td>${admin.saAccount}</td>
						<c:if test="${admin.saIsRoot==0 }">
							<td>超级管理员</td>
						</c:if>
						<c:if test="${admin.saIsRoot==1 }">
							<td>高级管理员</td>
						</c:if>
						<c:if test="${admin.saIsRoot==2 }">
							<td>普通管理员</td>
						</c:if>
						<td>${admin.saRegisterTime}</td>
						<td class="f-14 admin-manage"><a style="text-decoration:none"
							class="ml-5"
							onclick="layer_show('400','300','修改密码','manage/admin_goUpdataPassword.do?id=${admin.saId}')"
							href="javascript:;" title="修改密码"> <i class="icon-key"></i></a> <a
							title="删除" href="javascript:;;"
							onclick="handleItem('manage/admin_delAdmin.do?id=${admin.saId }')"
							class="ml-5" style="text-decoration:none"> <i
								class="icon-trash"></i></a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	<jsp:include page="/systemPage/paginationAdmin.jsp"></jsp:include>
	<jsp:include page="/systemPage/footerAdmin.jsp"></jsp:include>
	<script type="text/javascript">
		$(".Huiform").Validform({
			tiptype : 3,
		});
	</script>

</body>

</html>
